#pragma once

#include "AFXINET.H"
#include "string"
#include "LuaPlus.h"

class CLuaInternetSession
{
public:
	CLuaInternetSession();
	~CLuaInternetSession();

public:
	BOOL SendRequest(LPCWSTR szHeader, LPCWSTR szRefer, int nVerb, LPCWSTR szUrl);
	BOOL SendRequestData(LPCWSTR szHeader, LPCWSTR szRefer, int nVerb, LPCWSTR szUrl, LPCSTR szData);

	BOOL GetResultFile(LPCWSTR szFile);
	std::string GetResult();

private:
	BOOL _SendRequestData(LPCWSTR szHeader, LPCWSTR szRefer, int nVerb, LPCWSTR szUrl, LPCSTR szData);

private:
	CInternetSession m_internetSession;
	CHttpFile* m_pFile;
};